//
//  LGQModel.m
//  MVP
//
//  Created by 刘国庆 on 2018/10/10.
//  Copyright © 2018年 刘国庆. All rights reserved.
//

#import "LGQModel.h"

@implementation LGQModel



+(void)getUsers:(void(^)(NSArray * users))userBlock
{

    NSMutableArray * array = [NSMutableArray arrayWithCapacity:5];  //数组一般按照这种方式创建
    for (int i = 0; i<5; i++)
    {
        LGQModel * modle = [[LGQModel alloc] init];
        modle.name = [NSString stringWithFormat:@"name%d",i];
        modle.sex = i%2==0?0:1;
        [array addObject:modle];
        
    }
    if (userBlock)
    {
        userBlock(array);
    }
    
    
}




@end
